import pymysql
from A3mall.conftest.conftest import mysql_config
class db:
    def  __init__(self):
        self.conn=pymysql.connect(host=mysql_config['host'],user=mysql_config['user'],password=mysql_config['password'],db=mysql_config['db'])
        self.cur=self.conn.cursor()

    def select(self):
        self.cur.execute('select * from mall_users')
        print(self.cur.fetchall())